<!-- 我的表格 -->

<template>
  <WebTable class="RepairList-MyTable MaintainManage-MainRepair-MyTable" noPage medium>
    <RowTitle label="工单编号" bind="orderCode" :width="164" />

    <RowTime label="创建时间" bind="createTime" :minWidth="120" width="auto" />

    <RowText label="处理人" bind="resolverUserName" />

    <RowStatus :dict="GETTER.STATUS" :minWidth="90" width="auto" noTip>
      <template #default="{ row, text, props }">
        <div :class="getStatusClass(row)">
          <span v-bind="props">{{ text }}</span>
        </div>
      </template>
    </RowStatus>

    <RowOperate :btns="['show']" :width="80" :onShow="windowDetail" />
  </WebTable>
</template>

<script>
// ============================== 导入依赖 ============================== //

import mixDetailToTable from '@admin/components/detail/mixDetailToTable'
import MyTable from '@admin/views/Maintain/Repair/RepairList/MyTable'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'MyTable',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [mixDetailToTable('', 'DetailRepair')],

  /**
   * 本地方法 (轻量重要在前)
   */
  methods: {
    /**
     * 获取状态样式类
     */
    getStatusClass: MyTable.methods.getStatusClass,
  },
}
</script>

<style lang="scss">
@import './index.scss';
</style>
